package com.amarsoft.are.log.impl.simple;

import com.amarsoft.are.log.impl.FileHandler;

public class WarnFileHandler extends FileHandler
{
  public void configure()
  {
    super.configure();
    String str1 = "com.amarsoft.are.log.impl.simple.WarnFileHandler.";
    String str2 = getStringProperty(str1 + "level");
    if (str2 != null)
      setLogLevel(str2);
    if (getLogLevel() < 4)
      setLogLevel(4);
    setPattern(getStringProperty(str1 + "pattern", "./log/simple_warn_%g.log"));
    setLimit(getStringProperty(str1 + "limit", "1024000"));
    setCount(getStringProperty(str1 + "count", "10"));
    setAppend(getStringProperty(str1 + "append", "true"));
    String str3 = getStringProperty(str1 + "formatter");
    if (str3 == null)
      return;
    try
    {
      Class<?> localClass = Thread.currentThread().getContextClassLoader().loadClass(str3);
      setFormatter((Formatter)localClass.newInstance());
    }
    catch (Exception localException)
    {
      System.err.println("setFormatter Error:" + localException.getMessage());
    }
  }
}

/* Location:           D:\办公软件\反编译工具\jar\are-1.0b96.jar
 * Qualified Name:     com.amarsoft.are.log.impl.simple.WarnFileHandler
 * JD-Core Version:    0.5.3
 */